package com.lq.ecoldchain.entity

import android.os.Parcel
import android.os.Parcelable

/*
*2018/12/28 0028  14:38
*function by lq
*/
data class CarTypeListBean(
    val code: Int,
    val `data`: List<CarType>,
    val msg: Any
)

data class CarType(
    val a1: String?,
    val a2: String?,
    val a3: String?,
    val code: String,
    val cube: Int,
    val greenPassAdjustmentValue: String?,
    val id: Int,
    val tonnage: Int,
    val y: String?,
    val z: String?,
    val β: String?
) : Parcelable {
    constructor(parcel: Parcel) : this(
            parcel.readString(),
            parcel.readString(),
            parcel.readString(),
            parcel.readString(),
            parcel.readInt(),
            parcel.readString(),
            parcel.readInt(),
            parcel.readInt(),
            parcel.readString(),
            parcel.readString(),
            parcel.readString()) {
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeString(a1)
        parcel.writeString(a2)
        parcel.writeString(a3)
        parcel.writeString(code)
        parcel.writeInt(cube)
        parcel.writeString(greenPassAdjustmentValue)
        parcel.writeInt(id)
        parcel.writeInt(tonnage)
        parcel.writeString(y)
        parcel.writeString(z)
        parcel.writeString(β)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<CarType> {
        override fun createFromParcel(parcel: Parcel): CarType {
            return CarType(parcel)
        }

        override fun newArray(size: Int): Array<CarType?> {
            return arrayOfNulls(size)
        }
    }
}